/**
 * Created by Veronica on 2017/3/25.
 */
//列出所有的时区标识符
package app13;
import java.time.ZoneId;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Set;

public class TimeZoneDemo1 {
    public static void main(String[] args) {
        Set<String> allZoneIds = ZoneId.getAvailableZoneIds();
        List<String> zoneList = new ArrayList<>(allZoneIds);

        Collections.sort(zoneList);
        for (String zoneId : zoneList){
            System.out.println(zoneId);
        }
//        ZoneId.getAvailableZoneIds().stream().sorted().forEach(System.out::println);
    }
}
